package com.ciwong.epaper.widget;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

import com.ciwong.epaper.R;
import com.ciwong.epaper.util.DisplayUtils;
import com.ciwong.libs.utils.CWLog;

/**
 * Created by neo on 2016/6/29.
 */
public class TeacherCommentDialog extends Dialog {

    private TextView tv_teacher_comment;
    private  String mCommentText;
    private  Context mContext;

    public TeacherCommentDialog(Context context,String commentText) {
        super(context, R.style.dialog_teacher_comment);
        CWLog.d("dialog", "######TeacherCommentDialog##########");
        mCommentText=commentText;


        this.mContext=context;
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.dialog_teacher_comment);
        CWLog.d("dialog", "######onCreate##########");
        tv_teacher_comment = (TextView) findViewById(R.id.tv_teacher_comment);
        tv_teacher_comment.setText(mCommentText);
    }





}
